package com.qfedu.meidijiaju.controller;


import com.qfedu.meidijiaju.common.ResponseData;
import com.qfedu.meidijiaju.entity.PinleiYxy;
import com.qfedu.meidijiaju.service.PinleiYxyService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 品类 前端控制器
 * </p>
 *
 * @author meidimeiju
 * @since 2022-10-03
 */
@Api(tags = "品类")
@RestController
@RequestMapping("/meidijiaju/pinlei-yxy")
public class PinleiYxyController {

    @Autowired
    private PinleiYxyService pinleiYxyService;

    @ApiOperation(value = "添加分类里面的所有的分类")
    @RequestMapping(value = "/allPinLei",method = RequestMethod.GET)
    public ResponseData<List<PinleiYxy>> allPinLei(){

        return pinleiYxyService.allPinLei();
    }
}

